Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix deferred actions #368

Merged
merged 3 commits into from
Feb 10, 2024
Merged

Fix deferred actions #368

merged 3 commits into from
Feb 10, 2024

Conversation

n13
Copy link
Collaborator

@n13 n13 commented Jan 24, 2024

  • Deferred actions have been replaced by a table with deferred actions

  • Deferred actions that are due to be executed can be executed by anyone calling executenext

  • Backend process will be calling into executenext whenever needed

  • The list of scheduled actions is in a table called 'defactions' in contract scope

  • Only the contract itself can schedule actions

  • Unit tests are in the hypha contract repository here: https://github.com/hypha-dao/hypha-smart-contracts/blob/main/test_old/dao.test.js

  • The tests use test actions to simulate scheduling and executing deferred actions. They pass.

@n13 n13 merged commit 085f27b into master Feb 10, 2024
6 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant